import service from "../index"

export function getLogin(data) {

    return service({
        url: "/authUser/login",
        method: 'post',
        data
    })
}

export function getRegister(data) {
    return service({
        url: "/authUser/register",
        method: 'post',
        data: {
            ...data,
            role: '0'
        }
    })
}